package datatypes.tv;

public class tvGenre {

	private String name;
	private String id;
	private String programs;
	
	public tvGenre(String name, String id, String programs){
		this.name = name;
		this.id = id;
		this.programs = programs;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPrograms() {
		return programs;
	}
	public void setPrograms(String programs) {
		this.programs = programs;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		
		if (id != null && id.length() > 0) {
			sb.append("genre id: " + id + "\n");
		}
		
		if (name != null && name.length() > 0) {
			sb.append("genre name: " + name + "\n");
		}
		
		if (programs != null && programs.length() > 0) {
			sb.append("genre programs: " + programs + "\n");
		}
		
	 
		return sb.toString();
	}
	
}
